# 代码从上往下运行，a会改变
a = int(input("请输入一个自然数："))
b = 2
list = []

while a != b:
    if a % b == 0:
        list.append(b)
        a /= b
    else:
        b += 1

list.append(int(a))
for i in list:
    print(i, end=' ')






































































































































































































































































































































































































































































































































































































































































































































